﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TaoPortal.DataAccess;
using TaoPortal.Entity;

namespace TaoPortal.BusinessLogic.Repository
{
    public class TagRepository : BaseRepository
    {
        public TagRepository(DataContext dbcontext)
        {
            db = dbcontext;
            AutoCommit = true;
        }

        public TagRepository()
            : this(new DataContext())
        {

        }

        public void AddTag(TP_Tag tag)
        {
            db.TP_Tag.Add(tag);
            SaveChanges();
        }

        public void UpdateTag(TP_Tag tag)
        {

        }

    }
}
